﻿@using FCTC_Web.Models
@model FCTC_Web.Utilities.Page<Team>

@*@{
    ViewBag.Title = "Index";
}*@

<h2>Index</h2>

<p>
    @Html.ActionLink("创建", "Create")
</p>
<table>
    <tr>
        <th>
            队伍名称
        </th>
        <th>
            联系人
        </th>
        <th>
            联系电话
        </th>
        <th>
            赛季状态
        </th>
        <th>
            队伍人数
        </th>
        <th>
        操作
        </th>
    </tr>

@foreach (var item in Model.CurrentRecords) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.FullName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TeamContactor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ContactNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SessionStatus)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Members.Count)
        </td>
       
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.ID }) |
            @Html.ActionLink("详细信息", "Details", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
@Html.Pager(Model, "/Team/Index")